/*
 * @Date: 2023-08-03 17:13:25
 * @LastEditors: lyx
 * @LastEditTime: 2023-08-11 09:11:47
 * @FilePath: \sup-mimi-program-server\src\posts\entities\post.entity.ts
 * @Description:
 */
import { ModelOptions, prop } from '@typegoose/typegoose';

@ModelOptions({ schemaOptions: { timestamps: true } })
export class Post {
  @prop()
  title: string;
  @prop()
  intro: string;
  @prop()
  coverImage: string;
  @prop()
  content: string;
  @prop()
  createBy: string;
  @prop()
  targetUrl: string;
  @prop()
  type: string;
}
